package com.ruoyi.settled.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 博主订单对象 influencer_orders
 * 
 * @author ruoyi
 * @date 2025-01-10
 */
public class InfluencerOrders extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单编码，主键 */
    @Excel(name = "订单编码，主键")
    private String orderCode;

    /** 合作方编码，外键（指向合作方表） */
    @Excel(name = "合作方编码，外键", readConverterExp = "指=向合作方表")
    private String partnerCode;

    /** 订单金额 */
    @Excel(name = "订单金额")
    private BigDecimal orderAmount;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private String orderStatus;

    /** 订单日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "订单日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderDate;

    /** 创建订单的人员 */
    private String creator;

    /** 订单最后修改时间 */
    private Date modifyTime;

    /** 最后修改人 */
    private String lastModifiedBy;

    public void setOrderCode(String orderCode) 
    {
        this.orderCode = orderCode;
    }

    public String getOrderCode() 
    {
        return orderCode;
    }
    public void setPartnerCode(String partnerCode) 
    {
        this.partnerCode = partnerCode;
    }

    public String getPartnerCode() 
    {
        return partnerCode;
    }
    public void setOrderAmount(BigDecimal orderAmount) 
    {
        this.orderAmount = orderAmount;
    }

    public BigDecimal getOrderAmount() 
    {
        return orderAmount;
    }
    public void setOrderStatus(String orderStatus) 
    {
        this.orderStatus = orderStatus;
    }

    public String getOrderStatus() 
    {
        return orderStatus;
    }
    public void setOrderDate(Date orderDate) 
    {
        this.orderDate = orderDate;
    }

    public Date getOrderDate() 
    {
        return orderDate;
    }
    public void setCreator(String creator) 
    {
        this.creator = creator;
    }

    public String getCreator() 
    {
        return creator;
    }
    public void setModifyTime(Date modifyTime) 
    {
        this.modifyTime = modifyTime;
    }

    public Date getModifyTime() 
    {
        return modifyTime;
    }
    public void setLastModifiedBy(String lastModifiedBy) 
    {
        this.lastModifiedBy = lastModifiedBy;
    }

    public String getLastModifiedBy() 
    {
        return lastModifiedBy;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderCode", getOrderCode())
            .append("partnerCode", getPartnerCode())
            .append("orderAmount", getOrderAmount())
            .append("orderStatus", getOrderStatus())
            .append("orderDate", getOrderDate())
            .append("creator", getCreator())
            .append("modifyTime", getModifyTime())
            .append("lastModifiedBy", getLastModifiedBy())
            .append("remark", getRemark())
            .toString();
    }
}
